package com.example.a10.service;

import com.example.a10.newentity.PictureUrl;
import com.example.a10.util.FileUploadBizEnum;
import org.springframework.web.multipart.MultipartFile;

public interface FileService {

    /**
     * 文件上传
     *
     * @param multipartFile 需要上传的文件对象
     * @return 返回的url
     */
    String uploadFile(MultipartFile multipartFile, FileUploadBizEnum fileUploadBizEnum);

    /**
     * 校验文件
     *
     * @param multipartFile
     * @param fileUploadBizEnum 业务类型
     */
    void validFile(MultipartFile multipartFile, FileUploadBizEnum fileUploadBizEnum);

}
